import React from 'react';

export default (WrappedComponent) => {
  class TemplateHoc extends WrappedComponent {
    render() {
      const { isShow } = this.props;
      return !isShow ? null : super.render();
    }
  }
  return TemplateHoc;
}
